package cn.jizi.service.impl;

import cn.jizi.entity.ReportVo;
import cn.jizi.mapper.CreportMapper;
import cn.jizi.service.CreportService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 宋朝阳
 * @create 2020 -12 -01 9:13
 */
@Service
@Transactional
public class CreportServiceImpl implements CreportService {

    @Resource
    private CreportMapper creportMapper;

    //查询挂号的所有信息
    @Override
    public List<ReportVo> sel(ReportVo reportVo) {
        return creportMapper.sel(reportVo);
    }
    //查询某个患者的详细信息
    @Override
    public List<ReportVo> selById(Integer reportId) {
        return creportMapper.selById(reportId);
    }

    //把今天预约而没有来的人进行删除
    @Override
    public int upddang() {
        return creportMapper.upddang();
    }
}
